<?php

namespace app\common\model\exam;

use app\common\traits\model\RelationHelpers;
use think\Model;


class Student extends Model
{
    use RelationHelpers;
    // 表名
    protected $name = 'exam_student';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;

    // 追加属性
    protected $append = [

    ];

    public function setJsonAttr($value)
    {
        return json_encode($value);
    }

    public function getJsonAttr($value)
    {
        return json_decode($value, true);
    }

}
